import java.io.Serializable;

/**
 * Represents a M.U.L.E. level
 * 
 * @author Sherman Mathews
 */
public class Level implements Serializable {
	/*
	 * difficulty is the level difficulty
	 * numRounds is the number of Rounds for the game
	 */
	private String difficulty;
	private int numRounds;
	
	/**
	 * A level constructor that takes in the difficulty and sets the number
	 * of rounds accordingly 
	 * @param difficulty the difficulty of the game
	 */
	public Level(String difficulty) {
		if (difficulty.equalsIgnoreCase("EASY")) {
			numRounds = 10;
		}
		else
			numRounds = 12;
	}
	
	/**
	 * sets difficulty to the string passed in
	 * @param diff the new difficulty
	 */
	public void setDifficulty(String diff) {
		diff = difficulty;
	}
}
